<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            margin: 100px auto;
            animation: dong 1s infinite alternate linear;      
        }
        img{
            width: 100%;
        }
        /* img:hover{
            animation-play-state: paused;
        } */
        @keyframes dong{
            0%{
               transform: rotate(0);

            }
            50%{
                transform: rotate(180deg);
            }
            100%{
                transform: rotate(3600deg);
            }
        }

    </style>
</head>
<body>
    <div class="box">
        <img src="../image1/rotate.png" alt="">
    </div>
</body>
</html>